\chapter{Guest Functionalities}
\label{cap:guest} 
\section{Registration}

The guest, can become a Registered User, by successfully completing the registration and confirming his mail.
The guest can access the registration page from the site home.
He has to click and compile all the mandatory fields and provide a \textbf{valid email}.
After the registration is completed, he will get a confirmation mail and will have to click on the given link in order to complete the registration.





\section{Login}
From the home page the guest can log in just typing his username and password (chosen in registration phase) from the home page. He has to have confirmed the email in order to successfull log in.

\begin{figure}[!ht]
         \centerline{\includegraphics[scale=0.5]{images/login}}
         \caption{Login}
\end{figure}

\section{Search}
From the home page site, the guest can find a big text box in which he can type some words about  which user or kind of user he is looking for.
More specifically he can look for Swim users writing 
\begin{itemize}
 \item Username
 \item Name and Surname
 \item Just Name
 \item Just Surname
 \item A user Ability
\end{itemize}

\begin{figure}[!ht]
         \centerline{\includegraphics[scale=0.5]{images/search}}
         \caption{Search form}
\end{figure}


The site will try, in the limit of what is reasonable, to understand what the user is looking for. The system also matches data close (containing) what the user type, for instance the user can find 
the user "Mario Liquori"  typing "quori" in the search box.
The system try to displpay the results in order of relevance, for example displaying first the results matching exactly what the user typed.


\clearpage

\section{Advanced Search}

In the advanced search the guest may look for swim users typing several data such as name, surname, email, and city.
The user just type the data he knows and then submit and will see all the users matching the inserted data.
For instance he can look for a user with surname "Biondi" typing "Biondi" in the surname text box.

\begin{figure}[!ht]
         \centerline{\includegraphics[scale=0.5]{images/advanced_search}}
         \caption{Advanced Search}
\end{figure}



\section{Send messages}

A guest may send messages to swim users, remembering that he cannot have a reply in return until he does not successfully register.
To send a  message the guest can click 	on "Send a message" on the home page.
He has to type the username of the user he wants to write to, then he write the object and the text like in any mail service. 




